﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AgentMaster.Master"
    AutoEventWireup="true" CodeBehind="ManageAgent.aspx.cs" Inherits="whatpricemyhouse.agent.ManageAgent" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

        function mouseOver1(theObj) {
            theObj.src = "../images/button/update_agent-w.png";
        }
        function mouseOut1(theObj) {
            theObj.src = "../images/button/update_agent.png";
        }

        function mouseOver2(theObj) {
            theObj.src = "../images/button/email-w.png";
        }
        function mouseOut2(theObj) {
            theObj.src = "../images/button/email.png";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:LoginView ID="LoginView2" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="agent">
                <ContentTemplate>
                    <div class="agentNameHolder">
                        <asp:Label ID="Label1" runat="server" Text="Admin Area : " CssClass="largeHeaderStep"></asp:Label>
                        <asp:Label ID="Label2" runat="server" Text="Agent Names" CssClass="largeHeaderTitle"></asp:Label>
                        <div class="hrHolder">
                            <hr />
                            <br />
                            <asp:Label ID="UploadFileError" runat="server" Text="" ForeColor="Red"></asp:Label>
                        </div>
                        <div class="agentList1">
                            <asp:HiddenField ID="agentId1" runat="server" />
                            <div class="agentEditDetail">
                                <div class="addressTxt">
                                    Heading:<br />
                                    <asp:TextBox ID="addressTxt1" runat="server"></asp:TextBox>
                                </div>
                                <div class="nameTxt">
                                    Name:<br />
                                    <asp:TextBox ID="nameTxt1" runat="server"></asp:TextBox>
                                </div>
                                <div class="mobileTxt">
                                    Mobile:<br />
                                    <asp:TextBox ID="mobileTxt1" runat="server"></asp:TextBox>
                                </div>
                                <div class="phoneTxt">
                                    Phone:<br />
                                    <asp:TextBox ID="phoneTxt1" runat="server"></asp:TextBox>
                                </div>
                                <div class="faxTxt">
                                    Fax:<br />
                                    <asp:TextBox ID="faxTxt1" runat="server"></asp:TextBox>
                                </div>
                                <div class="textTxt">
                                    Text:<br />
                                    <asp:TextBox ID="textTxt1" runat="server"></asp:TextBox>
                                </div>
                                <div class="linkTxt">
                                    Link text:
                                    <br />
                                    (URL for above text to point to)<br />
                                    <asp:TextBox ID="linkTxt1" runat="server"></asp:TextBox>
                                </div>
                                <div class="photoUpload">
                                    Photo:
                                    <br />
                                    Image must be W:100 * H:120 pixels<br />
                                    <asp:FileUpload ID="photoUpload1" runat="server" />
                                </div>
                                <div class="isShownEmailCheck">
                                    <asp:CheckBox ID="isShownEmailCheck1" runat="server" Text="Show agent in emails?"
                                        Checked="True" />
                                </div>
                                <div class="commandHolder">
                                    <asp:ImageButton ID="UpdateButton1" runat="server" ImageUrl="~/images/button/update_agent.png"
                                        OnClick="UpdateButton1_Click" />
                                </div>
                            </div>
                            <div class="agentDetail">
                                <div class="agentDetailHeader">
                                </div>
                                <div class="agentDetailHolder">
                                    <asp:Image ID="Image1" runat="server" Width="100" Height="120" /><br />
                                    <asp:Label ID="nameLabel1" runat="server" Text=""></asp:Label><br />
                                    <b>Telephone:</b><br />
                                    <asp:Label ID="phoneLabel1" runat="server" Text=""></asp:Label><br />
                                    <b>Mobile:</b><br />
                                    <asp:Label ID="mobileLabel1" runat="server" Text=""></asp:Label><br />
                                    <b>Facsimile:</b><br />
                                    <asp:Label ID="facsimileLabel1" runat="server" Text=""></asp:Label><br />
                                    <asp:HyperLink ID="sendEmailButton1" runat="server" 
                                        NavigateUrl="">
                                        <img border="0" alt="Visit W3Schools!" src="../images/button/email.png" 
                    onmouseover="mouseOver2(this)" onmouseout="mouseOut2(this)" />
                                        </asp:HyperLink>
                                </div>
                                <div class="agentDetailFooter">
                                </div>
                            </div>
                        </div>
                        <div class="hrHolder" style="clear: both;">
                            <hr />
                        </div>
                        <div class="agentList2">
                            <asp:HiddenField ID="agentId2" runat="server" />
                            <div class="agentEditDetail">
                                <div class="addressTxt">
                                    Heading:<br />
                                    <asp:TextBox ID="addressTxt2" runat="server"></asp:TextBox>
                                </div>
                                <div class="nameTxt">
                                    Name:<br />
                                    <asp:TextBox ID="nameTxt2" runat="server"></asp:TextBox>
                                </div>
                                <div class="mobileTxt">
                                    Mobile:<br />
                                    <asp:TextBox ID="mobileTxt2" runat="server"></asp:TextBox>
                                </div>
                                <div class="phoneTxt">
                                    Phone:<br />
                                    <asp:TextBox ID="phoneTxt2" runat="server"></asp:TextBox>
                                </div>
                                <div class="faxTxt">
                                    Fax:<br />
                                    <asp:TextBox ID="faxTxt2" runat="server"></asp:TextBox>
                                </div>
                                <div class="textTxt">
                                    Text:<br />
                                    <asp:TextBox ID="textTxt2" runat="server"></asp:TextBox>
                                </div>
                                <div class="linkTxt">
                                    Link text:
                                    <br />
                                    (URL for above text to point to)<br />
                                    <asp:TextBox ID="linkTxt2" runat="server"></asp:TextBox>
                                </div>
                                <div class="photoUpload">
                                    Photo:
                                    <br />
                                    Image must be W:100 * H:120 pixels<br />
                                    <asp:FileUpload ID="photoUpload2" runat="server" />
                                </div>
                                <div class="isShownEmailCheck">
                                    <asp:CheckBox ID="isShownEmailCheck2" runat="server" Text="Show agent in emails?"
                                        Checked="True" />
                                </div>
                                <div class="commandHolder">
                                    <asp:ImageButton ID="UpdateButton2" runat="server" ImageUrl="~/images/button/update_agent.png"
                                        OnClick="UpdateButton2_Click" />
                                </div>
                            </div>
                            <div class="agentDetail">
                                <div class="agentDetailHeader">
                                </div>
                                <div class="agentDetailHolder">
                                    <asp:Image ID="Image2" runat="server" Width="100" Height="120" /><br />
                                    <asp:Label ID="nameLabel2" runat="server" Text=""></asp:Label><br />
                                    <b>Telephone:</b><br />
                                    <asp:Label ID="phoneLabel2" runat="server" Text=""></asp:Label><br />
                                    <b>Mobile:</b><br />
                                    <asp:Label ID="mobileLabel2" runat="server" Text=""></asp:Label><br />
                                    <b>Facsimile:</b><br />
                                    <asp:Label ID="facsimileLabel2" runat="server" Text=""></asp:Label><br />
                                    <asp:HyperLink ID="sendEmailButton2" runat="server"
                                        NavigateUrl="">
                                        <img border="0" alt="Visit W3Schools!" src="../images/button/email.png" 
                    onmouseover="mouseOver2(this)" onmouseout="mouseOut2(this)" />
                                        </asp:HyperLink>
                                </div>
                                <div class="agentDetailFooter">
                                </div>
                            </div>
                        </div>
                        <div class="hrHolder" style="clear: both;">
                            <hr />
                        </div>
                        <div class="agentList3">
                            <asp:HiddenField ID="agentId3" runat="server" />
                            <div class="agentEditDetail">
                                <div class="addressTxt">
                                    Heading:<br />
                                    <asp:TextBox ID="addressTxt3" runat="server"></asp:TextBox>
                                </div>
                                <div class="nameTxt">
                                    Name:<br />
                                    <asp:TextBox ID="nameTxt3" runat="server"></asp:TextBox>
                                </div>
                                <div class="mobileTxt">
                                    Mobile:<br />
                                    <asp:TextBox ID="mobileTxt3" runat="server"></asp:TextBox>
                                </div>
                                <div class="phoneTxt">
                                    Phone:<br />
                                    <asp:TextBox ID="phoneTxt3" runat="server"></asp:TextBox>
                                </div>
                                <div class="faxTxt">
                                    Fax:<br />
                                    <asp:TextBox ID="faxTxt3" runat="server"></asp:TextBox>
                                </div>
                                <div class="textTxt">
                                    Text:<br />
                                    <asp:TextBox ID="textTxt3" runat="server"></asp:TextBox>
                                </div>
                                <div class="linkTxt">
                                    Link text:
                                    <br />
                                    (URL for above text to point to)<br />
                                    <asp:TextBox ID="linkTxt3" runat="server"></asp:TextBox>
                                </div>
                                <div class="photoUpload">
                                    Photo:
                                    <br />
                                    Image must be W:100 * H:120 pixels<br />
                                    <asp:FileUpload ID="photoUpload3" runat="server" />
                                </div>
                                <div class="isShownEmailCheck">
                                    <asp:CheckBox ID="isShownEmailCheck3" runat="server" Text="Show agent in emails?"
                                        Checked="True" />
                                </div>
                                <div class="commandHolder">
                                    <asp:ImageButton ID="UpdateButton3" runat="server" ImageUrl="~/images/button/update_agent.png"
                                        OnClick="UpdateButton3_Click" />
                                </div>
                            </div>
                            <div class="agentDetail">
                                <div class="agentDetailHeader">
                                </div>
                                <div class="agentDetailHolder">
                                    <asp:Image ID="Image3" runat="server" Width="100" Height="120" /><br />
                                    <asp:Label ID="nameLabel3" runat="server" Text=""></asp:Label><br />
                                    <b>Telephone:</b><br />
                                    <asp:Label ID="phoneLabel3" runat="server" Text=""></asp:Label><br />
                                    <b>Mobile:</b><br />
                                    <asp:Label ID="mobileLabel3" runat="server" Text=""></asp:Label><br />
                                    <b>Facsimile:</b><br />
                                    <asp:Label ID="facsimileLabel3" runat="server" Text=""></asp:Label><br />
                                    <asp:HyperLink ID="sendEmailButton3" runat="server" 
                                        NavigateUrl="">
                                        <img border="0" alt="Visit W3Schools!" src="../images/button/email.png" 
                    onmouseover="mouseOver2(this)" onmouseout="mouseOut2(this)" />
                                        </asp:HyperLink>
                                </div>
                                <div class="agentDetailFooter">
                                </div>
                            </div>
                        </div>
                        <div class="hrHolder" style="clear: both;">
                        </div>
                    </div>
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>
</asp:Content>
